package com.work.cos.service.impl.msg;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.work.cos.domain.entity.msg.MsgTypeEntity;
import com.work.cos.mapper.msg.IMsgTypeMapper;
import com.work.cos.service.interfc.msg.IMsgTypeService;

/**
 * Created by intel on 2018/3/30.
 */

@Service
public class MsgTypeServiceImpl implements IMsgTypeService{

    /**
     * Logger
     */
    private static final Logger logger = LoggerFactory.getLogger(MsgTypeServiceImpl.class);

    @Resource
    private IMsgTypeMapper typeMapper;

	@Override
	public List<MsgTypeEntity> getAll() {
		logger.debug("getAll");
		return this.typeMapper.getAll();
	}

	@Override
	public List<MsgTypeEntity> getAllByIsDel(int isDel) {
		return this.typeMapper.getAllByIsDel(isDel);
	}

	@Override
	public MsgTypeEntity getOne(Long id) {
		return this.typeMapper.getOne(id);
	}

	@Override
	public void insert(MsgTypeEntity entity) {
		this.typeMapper.insert(entity);
	}

	@Override
	public void update(MsgTypeEntity entity) {
		this.typeMapper.update(entity);
	}

	@Override
	public void delete(Long id) {
		this.typeMapper.delete(id);
	}
}
